package lib.self.fresco.renderer;

/**
 * description: 圆角渲染器
 * author: Steven Xiao
 * date: 2017/4/27
 */
public class CornerRenderer extends BaseRenderer {
    /**
     * 圆角模式
     * 网络代码 未整理
     */
    public enum TCornerType {
        ALL,
        TOP_LEFT,
        TOP_RIGHT,
        BOTTOM_LEFT,
        BOTTOM_RIGHT,
        TOP,
        BOTTOM,
        LEFT,
        RIGHT,
        OTHER_TOP_LEFT,
        OTHER_TOP_RIGHT,
        OTHER_BOTTOM_LEFT,
        OTHER_BOTTOM_RIGHT,
        DIAGONAL_FROM_TOP_LEFT,
        DIAGONAL_FROM_TOP_RIGHT
    }

    private int mRadius = 10;

    public CornerRenderer() {
    }

    public CornerRenderer(int radius) {
        this.mRadius = radius;
    }

    public int getRadius() {
        return mRadius;
    }
}
